<!DOCTYPE html>
<html lang="en">
<head>
    {% load static %}
    <meta charset="UTF-8">
    <title>Title</title>
            <!-- 最新版本的 Bootstrap 核心 CSS 文件 -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<!-- 可选的 Bootstrap 主题文件（一般不用引入） -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap-theme.min.css" integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous">
<!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
</head>
<body>
{% if qx == 0 %}
<div>
    <ul class="nav nav-tabs">
        <li role="presentation"><a href="{% url 'info' %}">个人信息</a></li>
        <li role="presentation" class="active"><a href="{% url 'allinfo' %}">全部学生信息</a></li>
        <li role="presentation"><a href="{% url 'data' %}">修改个人信息</a></li>
        <li role="presentation"><a href="{% url 'task' %}">查看任务</a></li>
        <li role="presentation"><a href="{% url 'login' %}">退出</a></li>
    </ul>
</div>

<div>
    <table class="table table-hover">
        <thead>
            <tr>
                <th>姓名</th>
                <th>年龄</th>
                <th>学历</th>
                <th>方向</th>
                <th>结果</th>
                <th>教师评语</th>
            </tr>
        </thead>
        {% for foo in num.object_list %}

        <tbody>
            <tr>
                <td>{{ foo.name }}</td>
                <td>{{ foo.age }}</td>
                <td>{{ foo.xueli }}</td>
                <td>{{ foo.fangxiang }}</td>
                <td>{{ foo.jieguo }}</td>
                <td>{{ foo.jianjie }}</td>
            </tr>
        </tbody>
        {% endfor %}
    </table>
</div>


<div class="page">
<div>
    {% if num.has_previous %}
      <a class="prev" href="?index={{ num.previous_page_number }}">上一页</a>
        {% else %}
      <a class="num" href="#">上一页</a>
        {% endif %}
        {% for foo in page.page_range %}
            {% if foo == foo %}
                <a class="num current" href="?index={{ foo }}">{{ foo }}</a>
            {% else %}
                <a class="num" href="?index={{ foo }}">{{ foo }}</a>
            {% endif %}
        {% endfor %}
        {% if num.has_next %}
            <a class="next" href="?index={{ num.next_page_number }}">下一页</a>
        {% else %}
            <a class="next" href="#">下一页</a>
        {% endif %}
</div>
</div>
{% endif %}

{% if qx == 1 %}
<div>
    <ul class="nav nav-tabs">
        <li role="presentation" class="active" ><a href="{% url 'allinfo' %}">全部学生信息</a></li>
        <li role="presentation"><a href="{% url 'alltask' %}">全部任务</a></li>
        <li role="presentation"><a href="{% url 'addtask' %}">添加任务</a></li>
        <li role="presentation"><a href="{% url 'lsupdate' %}">修改学生信息</a></li>
        <li role="presentation"><a href="{% url 'wcqk' %}">学生完成情况</a></li>
        <li role="presentation"><a href="{% url 'login' %}">退出</a></li>
    </ul>
</div>

<div>
    <table class="table table-hover">
        <thead>
            <tr>
                <th>姓名</th>
                <th>年龄</th>
                <th>学历</th>
                <th>方向</th>
                <th>结果</th>
                <th>教师评语</th>
            </tr>
        </thead>
        {% for foo in num.object_list %}

        <tbody>
            <tr>
                <td>{{ foo.name }}</td>
                <td>{{ foo.age }}</td>
                <td>{{ foo.xueli }}</td>
                <td>{{ foo.fangxiang }}</td>
                <td>{{ foo.jieguo }}</td>
                <td>{{ foo.jianjie }}</td>
            </tr>
        </tbody>
        {% endfor %}
    </table>
</div>


<div class="page">
<div>
    {% if num.has_previous %}
      <a class="prev" href="?index={{ num.previous_page_number }}">上一页</a>
        {% else %}
      <a class="num" href="#">上一页</a>
        {% endif %}
        {% for foo in page.page_range %}
            {% if foo == foo %}
                <a class="num current" href="?index={{ foo }}">{{ foo }}</a>
            {% else %}
                <a class="num" href="?index={{ foo }}">{{ foo }}</a>
            {% endif %}
        {% endfor %}
        {% if num.has_next %}
            <a class="next" href="?index={{ num.next_page_number }}">下一页</a>
        {% else %}
            <a class="next" href="#">下一页</a>
        {% endif %}
</div>
</div>
{% endif %}



</body>
</html>